<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;

/* @var $this yii\web\View */
/* @var $model backend\modules\credit\models\Custom */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="custom-form">

    <?php $form = ActiveForm::begin(); ?>

    <?= $form->field($model, 'guarantee_company_id')->widget(\kartik\widgets\Select2::className(), ['data'=>\yii\helpers\ArrayHelper::map(\common\models\GuaranteeCompany::find()->asArray()->all(), 'id', 'name')])->label('担保公司') ?>

    <?= $form->field($model, 'guarantee_company_user_id')->textInput() ?>

    <?= $form->field($model, 'master_name')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'orderno')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'mobile')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'address')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'unit')->textInput(['maxlength' => true]) ?>

    <div class="form-group">
        <?= Html::submitButton(Yii::t('app', 'Save'), ['class' => 'btn btn-success']) ?>
    </div>

    <?php ActiveForm::end(); ?>

</div>
